package multiThread;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ThreadDemo_1 {

	public static void main(String[] args) throws InterruptedException {
		
		SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss");
		while(true){
			Date d = new Date();
			Thread.sleep(1000);
			System.out.println(sdf.format(d))
			;
		}
	}

}
